package com.ibangnuo.manage.controller.newLandpay;

import com.ibangnuo.api.newLandpay.NewLandPayControllerApi;
import com.ibangnuo.framework.domain.request.newLandpay.NewLandPayRequest;
import com.ibangnuo.framework.model.response.ObjectResult;
import com.ibangnuo.manage.service.newLandpay.NewLandPayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wwy
 * @Date: 2020-01-09 14:32
 */
@RestController
@RequestMapping("/newLand")
public class NewLandPayController implements NewLandPayControllerApi {
    @Autowired
    private NewLandPayService newLandPayService;
    /**
     * 新大陆支付
     * @param newLandPayRequest
     * @return
     */
    @PostMapping("/pay")
    @Override
    public ObjectResult pay(@RequestBody NewLandPayRequest newLandPayRequest) {
        return newLandPayService.pay(newLandPayRequest);
    }
}
